<template>
    <div>
        <input type="text" :value='modelValue' @input="editFn">
    </div>
</template>

<script>
export default {
    data() {
        return {
        }
    },
    props: ['modelValue'],
    emits: ['update:modelValue'],
    methods: {
        editFn(e) {
            this.$emit('update:modelValue', e.target.value)
        }
    }
}
</script>
<style scoped></style>